package com.scnu.edu.config;

import com.scnu.edu.entity.Vip;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import java.math.BigDecimal;
import java.util.Arrays;
import java.util.List;

@Configuration
public class VipConfig {

    @Bean
    public List<Vip> vip() {
        return Arrays.asList(
                new Vip(30, new BigDecimal("15.00"), "1个月VIP", false),
                new Vip(90, new BigDecimal("45.00"), "3个月VIP", true),
                new Vip(180, new BigDecimal("75.00"), "6个月VIP", false),
                new Vip(365, new BigDecimal("180.00"), "12个月VIP", false)
        );
    }
}